A contract is a legal agreement or promise between two or more people.
A contract is an agreement or promise that the law can enforce. The law will enforce some agreements but not others. For example, in most places, if a parent promises to take a child to get ice cream, the law will not enforce that promise as a legal contract.